<?php

$data = json_encode($_POST['chords']);
$name = $_POST['name'];

mkdir("maps/coords");
$writefile = fopen('maps/coords/' . $name . '.json', 'w');
fwrite($writefile, $data);
fclose($writefile);


?>
